Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
SetBinaryValue(DicomElement,Byte[],Int32) Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class > SetBinaryValue Method : SetBinaryValue(DicomElement,Byte[],Int32) Method




element
An item in the Data Set.
value
Pointer to a buffer that contains the binary value to set.
length
Value that represents the length, in bytes, of the buffer you allocated.
Sets the binary value of an element.

Syntax

Visual Basic (Declaration) 
Overloads Public Function SetBinaryValue( _
   ByVal element As DicomElement, _
   ByVal value() As Byte, _
   ByVal length As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim element As DicomElement
Dim value() As Byte
Dim length As Integer
Dim value As Boolean
 
value = instance.SetBinaryValue(element, value, length)
C# 
public bool SetBinaryValue( 
   DicomElement element,
   byte[] value,
   int length
)
Managed Extensions for C++ 
public: bool SetBinaryValue( 
   DicomElement* element,
   byte[] value,
   int length
) 
C++/CLI 
public:
bool SetBinaryValue( 
   DicomElement^ element,
   array<byte> value,
   int length
) 

Parameters

element
An item in the Data Set.
value
Pointer to a buffer that contains the binary value to set.
length
Value that represents the length, in bytes, of the buffer you allocated.

Return Value

true if the binary value of the Data Element was set successfully. false if could not set the binary value of the Data Element.

Example

For an example, refer to SetIntValue.

Remarks

This method overwrites the value of the Data Element. The Value Length of the Data Element is then equal to length.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Dicom requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features